<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹性盒-修改主轴方向</title>
    <style>
        .box{
            width: 500px;
            height: 500px;
            border: 1px solid black;
            margin: 0 auto;
            display: flex;
            /*column:竖直排列 row:水平排列 column-reverse:取反竖直排列 row-reverse: 取反水平排列*/
            flex-direction: row-reverse;
        }
        .box div{
            width: 100px;
            height: 100px;
            border: 1px dashed red;
        }
    </style>
</head>
<body>
    <div class="box">
        <div>1111111</div>
        <div>2222</div>
        <div>3333</div>
        <div>444444</div>
    </div>
</body>
</html>